package com.test4;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Admin on 9/17 0017.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext con=new ClassPathXmlApplicationContext("test4.xml");
        Car car= (Car) con.getBean("carFactoryBean");
        System.out.println(car);
    }
}
